export const shortly = (count, tail = '..') => title => {
  if(!title) return ''
  if(title.length <= count) return title
  return title.substr(0, count) + tail
}

export const shortly3 = shortly(3)
export const shortly4 = shortly(4)
export const shortly5 = shortly(5)
export const shortly6 = shortly(6)
export const shortly7 = shortly(7)
export const shortly8 = shortly(8)
export const shortly9 = shortly(9)